package day09.Ti.HashiSetDome;

import java.util.LinkedHashSet;
import java.util.Scanner;

public class Ti02 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入字符串");
        String s = sc.nextLine();
        LinkedHashSet<Character> lhs = new LinkedHashSet<>();
        char[] a = s.toCharArray();
        for (char c : a) {
            lhs.add(c);
        }
        System.out.println(lhs);
    }
}
